package com.huarui.part.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.ewaf.framework.model.BaseDataObject;

/**
 *　零件类别类
 * 
 * @author xu
 * 
 */
public class PartCategory extends BaseDataObject {

	private static final long serialVersionUID = -713383448014210425L;
	/**
	 * 主键　
	 */
	private Integer id;
	/**
	 * 一级名称
	 */
	private String level1Name;
	/**
	 * 二级名称
	 */
	private String level2Name;
	/**
	 * 一级ID
	 */
	private Integer level1Id;

	@Override
	public Integer getId() {

		return this.id;
	}

	/**
	 * 得到一级名称
	 * 
	 * @return
	 */
	public String getLevel1Name() {
		return level1Name;
	}

	/**
	 * 设置一级名称
	 * 
	 * @param level1Name
	 */
	public void setLevel1Name(String level1Name) {
		this.level1Name = level1Name;
	}

	/**
	 * 得到二级名称
	 * 
	 * @return
	 */
	public String getLevel2Name() {
		return level2Name;
	}

	/**
	 * 设置二级名称　
	 * 
	 * @param level2Name
	 */
	public void setLevel2Name(String level2Name) {
		this.level2Name = level2Name;
	}

	/**
	 * 得到一级ID
	 * 
	 * @return
	 */
	public Integer getLevel1Id() {
		return level1Id;
	}

	/**
	 * 设置一级ID
	 * 
	 * @param level1Id
	 */
	public void setLevel1Id(Integer level1Id) {
		this.level1Id = level1Id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this); 
	}

}
